package com.hopu.mcshipin.service.impl;

import com.hopu.mcshipin.entity.Video;
import com.hopu.mcshipin.entity.VideoExt;
import com.hopu.mcshipin.mapper.VideoListMapper;
import com.hopu.mcshipin.service.VideoListService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoListServiceImpl implements VideoListService {

    @Resource
    private VideoListMapper videoListMapper;

    @Override
    public List<VideoExt> getVedioList() {
        try {
            return videoListMapper.selectAll();
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException("查询视频列表失败: " + e.getMessage());
        }
    }
}
